<?php
class Application_Form_CustomField extends Zend_Form
{
	public function init()
	{
		$this->setName('customfield');

		$id = new Zend_Form_Element_Hidden('id');
		$id->addFilter('Int');

		$name = new Zend_Form_Element_Text('name');
		$name->setLabel('Name')->setRequired(true);

		$type = new Zend_Form_Element_Text('type');
		$type->setLabel('Type')->setRequired(true);

		$token = new Zend_Form_Element_Hidden('token');
		$token->setRequired(true)->addValidator('NotEmpty');

		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')->setLabel('Submit');

		$this->addElements(array($id,$name, $type, $token, $submit));

	}
}
?>